package com.qtenv.datasync.service.mapper;

import com.qtenv.datasync.config.MyBaseMapper;
import com.qtenv.datasync.service.entity.TerminalHistoryData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 历史数据（大表） Mapper 接口
 * </p>
 *
 * @author CBL
 * @since 2022-06-22
 */
@Mapper
public interface TerminalHistoryDataMapper extends MyBaseMapper<TerminalHistoryData> {
    List<TerminalHistoryData> getInstantDataList(@Param("tenantId") String tenantId, @Param("areaId") String areaId,
                                                 @Param("startDate") String startDate, @Param("endDate") String endDate);

    List<TerminalHistoryData> getHistoryDataList(@Param("tenantId") String tenantId, @Param("terminalId") String terminalId,
                                                 @Param("startDate") String startDate, @Param("endDate") String endDate);

    List<TerminalHistoryData> getSeniorMinNightFlow(@Param("tenantId") String tenantId, @Param("areaId") String areaId);
}
